/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package jse;

import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.Set;

/**
 *
 * @author Swang
 */
public class MapTest {
    public static void main(String[] args) {
        Map m = new LinkedHashMap();
        m.put("k1", "v1");
        m.put("k2", "v2");
        m.put("k3", "v3");
        m.put("k4", "v4");
        m.put("k5", "v5");
        
        for(Map.Entry entry : (Set<Map.Entry>)m.entrySet()) {
            System.out.println(entry.getKey() + ":" + entry.getValue());
        }
    }
}
